some algorithm implementations of cryptography