in reply to Which Crypt::XXX should I use ?
how to process the case of error ?
Ideally you would check the input ($ciphertext) to determine if it is valid before considering whether to pass it to the decryption method. If that isn't feasible for any reason then just trap the error with eg. Try::Tiny or eval.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Which Crypt::XXX should I use ?
by pcouderc (Monk) on Feb 17, 2016 at 14:08 UTC |