Encrypt
(Created page with " This function is an Encryption function in the UBot Extended Library. This function encrypts a value through the following methods provided in the function: base64: tak...") |
|||
Line 3: | Line 3: | ||
− | base64: takes a stream of characters and converts them to characters that belong to the universal ASCII character set.[http://www.hcidata.info/base64.htm What is Base 64 Encoded Data?] | + | '''base64:''' takes a stream of characters and converts them to characters that belong to the universal ASCII character set.[http://www.hcidata.info/base64.htm What is Base 64 Encoded Data?] |
− | md5: produces a 128-bit (16-byte) hash value, typically expressed in text format as a 32 digit hexadecimal number.[http://www.makeuseof.com/tag/md5-hash-stuff-means-technology-explained/ What All This MD5 Hash Stuff Actually Means [Technology Explained]] | + | '''md5:''' produces a 128-bit (16-byte) hash value, typically expressed in text format as a 32 digit hexadecimal number.[http://www.makeuseof.com/tag/md5-hash-stuff-means-technology-explained/ What All This MD5 Hash Stuff Actually Means [Technology Explained]] |
− | sha1: message-digest algorithm, which takes an input message of any length < 2^64 bits and produces a 160-bit output as the message digest.[http://www.herongyang.com/Cryptography/SHA1-Message-Digest-What-Is-SHA1.html What Is SHA1 Message Digest Algorithm?] | + | '''sha1:''' message-digest algorithm, which takes an input message of any length < 2^64 bits and produces a 160-bit output as the message digest.[http://www.herongyang.com/Cryptography/SHA1-Message-Digest-What-Is-SHA1.html What Is SHA1 Message Digest Algorithm?] |
− | sha256: SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text.[http://www.movable-type.co.uk/scripts/sha256.html SHA-256 Cryptographic Hash Algorithm] | + | '''sha256:''' SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text.[http://www.movable-type.co.uk/scripts/sha256.html SHA-256 Cryptographic Hash Algorithm] |
Revision as of 23:11, 24 June 2015
This function is an Encryption function in the UBot Extended Library. This function encrypts a value through the following methods provided in the function:
base64: takes a stream of characters and converts them to characters that belong to the universal ASCII character set.What is Base 64 Encoded Data?
md5: produces a 128-bit (16-byte) hash value, typically expressed in text format as a 32 digit hexadecimal number.What All This MD5 Hash Stuff Actually Means [Technology Explained]
sha1: message-digest algorithm, which takes an input message of any length < 2^64 bits and produces a 160-bit output as the message digest.What Is SHA1 Message Digest Algorithm?
sha256: SHA-256 generates an almost-unique 256-bit (32-byte) signature for a text.SHA-256 Cryptographic Hash Algorithm
Value to Encrypt: The value being hashed. (the value PeanutButter in the variable #testvalue)
Cryptography Algorithm: The method by which the value will be hashed.
Example
set(#testvalue,"PeanutButter","Global") add item to list(%base64,$encrypt(#testvalue,"base64"),"Don\'t Delete","Global") add item to list(%md5,$encrypt(#testvalue,"md5"),"Don\'t Delete","Global") add item to list(%sha1,$encrypt(#testvalue,"sha1"),"Don\'t Delete","Global") add item to list(%sha256,$encrypt(#testvalue,"sha256"),"Don\'t Delete","Global")
There are 4 examples in the script above. The resulting has is shown in each list.