Java Utililty Methods rot13 Hash

List of utility methods to do rot13 Hash

Description

The list of methods to do rot13 Hash are organized into topic(s).

Method

byterot13(final byte b)
rot
if (b >= a && b <= z) {
    final byte c = (byte) (b + 13);
    if (c > z) {
        return (byte) (a + c - z);
    return c;
} else if (b >= A && b <= Z) {
    final byte c = (byte) (b + 13);
...
Stringrot13(String _input)
Simple rot13 implementation.
if (_input == null) {
    return null;
StringBuilder sb = new StringBuilder();
for (int i = 0; i < _input.length(); i++) {
    char c = _input.charAt(i);
    if (c >= 'a' && c <= 'm') {
        c += 13;
...
Stringrot13(String argInput)
Dummy Rot13 encryption.
String ret = "";
for (int i = 0; i < argInput.length(); i++) {
    char ch = argInput.charAt(i);
    int dif = 0;
    if ((ch >= 'A' && ch <= 'M') || (ch >= 'a' && ch <= 'm')) {
        dif = 13;
    if ((ch >= 'N' && ch <= 'Z') || (ch >= 'n' && ch <= 'z')) {
...
Stringrot13(String input)
ROMAN
char[] out = input.toCharArray();
int i = 0;
for (char c : out) {
    if (c >= 'a' && c <= 'z') {
        c -= 'a';
        c += 13;
        c %= 26;
        c += 'a';
...
Stringrot13(String input)
rot
StringBuilder sb = new StringBuilder();
for (int i = 0; i < input.length(); i++) {
    char c = input.charAt(i);
    if (c >= 'a' && c <= 'm')
        c += 13;
    else if (c >= 'n' && c <= 'z')
        c -= 13;
    else if (c >= 'A' && c <= 'M')
...
Stringrot13(String s)
rot
StringBuilder sb = new StringBuilder();
int offset = 13;
for (int i = 0; i < s.length(); i++) {
    char c = s.charAt(i);
    if ((c >= 'a') && (c <= 'm')) {
        c += offset;
    } else if ((c >= 'A') && (c <= 'M')) {
        c += offset;
...
Stringrot13(String string)
rot
StringBuilder builder = new StringBuilder();
for (int i = 0; i < string.length(); i++) {
    char c = string.charAt(i);
    if (c >= 'a' && c <= 'm')
        c += 13;
    else if (c >= 'A' && c <= 'M')
        c += 13;
    else if (c >= 'n' && c <= 'z')
...
Stringrot13(String text)
(De)codes the given text with rot13.
char[] dummy = new char[text.length()];
boolean convert = true;
char c;
for (int i = 0; i < text.length(); i++) {
    c = text.charAt(i);
    if (convert && ((c >= 'a' && c <= 'm') || (c >= 'A' && c <= 'M'))) {
        dummy[i] = (char) (c + 13);
    } else if (convert && ((c >= 'n' && c <= 'z') || (c >= 'N' && c <= 'Z'))) {
...
Stringrot13(String value)
Replace every alpha character in a string with the character 13 over
StringBuffer buffer = new StringBuffer(value.length());
int count = value.length();
int index;
char c;
for (int i = 0; i < count; i++) {
    c = value.charAt(i);
    if ((index = LOWER.indexOf(c)) >= 0) {
        buffer.append(LOWER.charAt((index + 13) % 26));
...