I am attempting to decrypt a URL that was generated in JavaScript. This is the code snippet I found in the HTML page:
Base64.encrypt(Base64.decode('Zk05NUQ6YUZVcERKd3pCdlkucUIrbnFtdldTdW5mbkZnZFk5TVFpV3N0NHRaTF9FV1RWSHhjX1pFMDNacmxwUy5JalF3Yw=='));
My question now is how can I decrypt this in Objective-C. I have imported a Base64 library into my Xcode project and used the following function to decode the data:
+ (NSData*) decode:(NSString*) string;
However, I am unsure about how to go about encrypting it. What exactly does Base64.encrypt
entail and how can I implement it in Objective-C?
EDIT 2:
I attempted to use the decoded Base64 data and got the following output:
fM95D:aFUpDJwzBvY.qB+nqmvWSunfnFgdY9MQiWst4tZL_EWTVHxc_ZE03ZrlpS.IjQwc
What should be my next course of action? The JavaScript indicates the use of Base64 encryption, but what steps do I need to take in Objective-C?