/** * Apply transformation: * * Encode a string in base64 or return * the input if already in base64 * * @param string $input * * @return mixed */ protected function transformWalletPassword($input = '') { if (!\Genesis\Utils\Common::isBase64Encoded($input)) { return base64_encode($input); } return $input; }