B4J Question B4XCryptor Library (Custom ASC shifting Algorithm)

ThRuST

Well-Known Member
Licensed User
Longtime User
B4XCryptor v1.2 Library

Updated 2022-06-23
The new version uses a float value to handle larger amounts of chars.

Hi All! Here's a library that I wrote called B4XCryptor. With this library you can pass in the parameter how many steps to shift ASC table for all chars in the array.
You can use as many commands to build as strong security as you wish and combine it with one of the official standards.
I'm looking forward for comments on this and welcome to provide your code examples for alternative methods.

Example taken from the source code

ENCRYPT a string
Usage: B4XCryptor.Encrypt(String, Steps)
0 means no shifting. Note that you should use - in front of the value to reverse shifting.
B4XCryptor.Encrypt("Hello world", 10) then use B4XCryptor.Decrypt("Hello world", -10)

DECRYPT a string
Usage: B4XCryptor.Decrypt(String, Steps)
0 means no shifting. Note that you should use - in front of the value to reverse shifting.
B4XCryptor.Encrypt("Hello world", 10) then use B4XCryptor.Decrypt("Hello world", -10)



I hope you find this useful!
/ThRuST
 

Attachments

  • B4XCryptor v1.2.zip
    103.4 KB · Views: 75
Last edited:
Top