harpo
library
Functions
-
binToDec(String binaryNumber)
→ String
-
This function converts a binary
number of type
-
decryptLetter(int factor, int encryptedLetter)
→ String
-
This function gets the letter from a position
in the alphabet.
-
decryptLetterBinary(int factor, String encryptedLetter)
→ String
-
This function decrypts letters as binary numbers,
not decimal numbers.
-
decryptLetterHex(int factor, String encryptedLetter)
→ String
-
This function decrypts letters as hexadecimal numbers,
not decimal numbers.
-
decryptPhrase(int factor, String encryptedPhrase)
→ String
-
This function does to phrases what their counterparts
do to words.
-
decryptPhraseBinary(int factor, String encryptedPhrase)
→ String
-
This function does to phrases what their counterparts
do to words. Only in binary.
-
decryptPhraseHex(int factor, String encryptedPhrase)
→ String
-
This function does to phrases what their counterparts
do to words. Only in hexadecimal.
-
decryptWord(int factor, String encryptedWord)
→ String
-
This function returns a word from a sequence of numbers
corresponding to the each letter's position in the alphabet.
-
decryptWordBinary(int factor, String encryptedWord)
→ String
-
This function returns a word from a sequence of binary numbers
corresponding to the each letter's position in the alphabet.
-
decryptWordHex(int factor, String encryptedWord)
→ String
-
This function returns a word from a sequence of hexadecimal numbers
corresponding to the each letter's position in the alphabet.
-
decToBin(int decimalNumber)
→ String
-
This function converts a decimal
number of type
-
decToHex(int dec)
→ String
-
This function converts
numbers of base 10 into
numbers of base 16.
-
encryptLetter(int factor, String letter)
→ int
-
This function gets the position of a letter
in the alphabet.
-
encryptLetterBinary(int factor, String letter)
→ String
-
This function encrypts letters as binary numbers,
not decimal numbers.
-
encryptLetterHex(int factor, String letter)
→ String
-
This function encrypts letters as hexadecimal numbers,
not decimal numbers.
-
encryptPhrase(int factor, String phrase)
→ String
-
This function does to phrases what their counterparts
do to words.
-
encryptPhraseBinary(int factor, String phrase)
→ String
-
This function does to phrases what their counterparts
do to words. Only in binary.
-
encryptPhraseHex(int factor, String phrase)
→ String
-
This function does to phrases what their counterparts
do to words. Only in hexadecimal.
-
encryptWord(int factor, String word)
→ String
-
This function takes a word and returns
a number sequence. These numbers are a
multiple of the corresponding letter's
position in the alphabet.
-
encryptWordBinary(int factor, String word)
→ String
-
a binary number sequence. These binary numbers are a
multiple of the corresponding letter's
position in the alphabet.
-
encryptWordHex(int factor, String word)
→ String
-
a hexadecimal number sequence. These hexadecimal numbers are a
multiple of the corresponding letter's
position in the alphabet.
-
hexToDec(String hexNumber)
→ String
-
Convert hexadecimals to
decimal numbers.
-
testAll()
→ void
-
This function tests all of the available functions..
-
testAllBinary()
→ void
-
This functions tests all of the above binary functions.
-
testAllHex()
→ void
-
This functions tests all of the above hexadecimal functions.