Integrated native key transformation method into Cryptography class