Ruby Encryption
With StringEncrypt you can encrypt strings and files for Ruby programming language.
String encryption supports both UNICODE and ANSI strings.
You can read more about Ruby and Ruby strings at:
With StringEncrypt you can encrypt strings and files for Ruby programming language.
String encryption supports both UNICODE and ANSI strings.
You can read more about Ruby and Ruby strings at:
# encrypted with www.stringencrypt.com (v1.0.0) [Ruby] # my_string = "Encryption in Ruby" my_string = "\u6856\u687B\u6870\u685F\u6862\u687D\u687D\u6874" \ "\u6870\u687B\u6871\u6844\u687B\u698D\u6857\u6878" \ "\u684F\u6868" my_string.codepoints.each_with_index do |kwctn, tlgyv| kwctn += 1 kwctn ^= 0x8B72 kwctn = ~kwctn kwctn += 0x3D4D kwctn = ~kwctn kwctn += 0x5A8C kwctn ^= 0x0022 kwctn = ~kwctn kwctn ^= tlgyv kwctn -= tlgyv kwctn = ~kwctn kwctn -= 1 my_string[tlgyv] = [kwctn & 0xFFFF].pack('U').force_encoding('UTF-8') end puts my_string
# encrypted with www.stringencrypt.com (v1.0.0) [Ruby] # my_string = "Encryption in Ruby" my_string = "\xED\x94\x83\xF4\xF9\xF2\xF6\x8B\x83\x84\xC2\xFB\xFC\xC2\xD4\xF7" \ "\xE0\xFB" my_string.codepoints.each_with_index do |efuhs, owjts| efuhs = ~efuhs efuhs ^= 0x38 efuhs -= 0x56 efuhs = ~efuhs efuhs -= 1 efuhs -= owjts efuhs ^= 0x6F efuhs ^= owjts my_string[owjts] = [efuhs & 0xFF].pack('U') end puts my_string