miranj / craft-cryptographer Goto Github PK
View Code? Open in Web Editor NEWA Craft CMS plugin that adds Twig filters to encrypt and decrypt content via URL-safe strings.
Home Page: https://plugins.craftcms.com/cryptographer
License: MIT License
A Craft CMS plugin that adds Twig filters to encrypt and decrypt content via URL-safe strings.
Home Page: https://plugins.craftcms.com/cryptographer
License: MIT License
Exploring this plugin for a project and have a question. Reviewed the documentation and it seems that the maskNumbers filter will result in a string that is permanent. That over time if applied to the same number, you'd always get the same string when filter is applied. Is this accurate?
Over time is there anything you could envision that might result in the string the filter produces changing?
Are there any plans to make this plugin compatible with Craft 4?
I wondered if Cryptographer will be ready for Craftcms 5. I want to try Craftcms 5, so is there any way to make Cryptographer compatible with Craftcms 5?
It appears the mask numbers function only works for whole numbers, not numbers with decimal places. Can use the encrypt function but thought I'd just see if this was an item that could be updated.
Update the composer hashids/hashids version range to be "^2.0 || ^4.0"
openssl_decrypt error : “failed to base64 decode the input”
I seem to get this error randomly, 1 out of 6 times or so, when trying to use the default decrypt
& encrypt
filters. Luckily, using AES-128-CFB
for enc / dec has stopped the error.
The version of the plugin on Packagist is 1.0.3 which does not contain the change to allow version 4 of hashids. Is it possible to publish a new tag with this change in?
Whenever I try to install this plugin on a fresh/clean install for Craft CMS 3.2.6 I receive
Error
Class 'Craft\base\Plugin' not found
I have another system that has the plugin already installed for a while and is on the same Craft CMS version. Uninstalling it there and reinstalling it works just fine there.
This is what I could find inside the logs:
019-07-25 02:08:46 [90.187.46.237][-][9uqpp5kd4tjetv2800ephi81ft][error][Error] Error: Class 'Craft\base\Plugin' not found in MY_PATH_HERE/httpdocs/vendor/miranj/craft-cryptographer/src/Plugin.php:19
Stack trace:
#0 MY_PATH_HERE/httpdocs/vendor/composer/ClassLoader.php(444): include()
#1 MY_PATH_HERE/httpdocs/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/vhosts...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('miranj\cryptogr...')
#3 [internal function]: spl_autoload_call('miranj\cryptogr...')
#4 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/src/services/Plugins.php(870): is_subclass_of('miranj\cryptogr...', 'craft\base\Plug...')
#5 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/src/services/Plugins.php(230): craft\services\Plugins->createPlugin('cryptographer', Array)
#6 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/src/base/ApplicationTrait.php(1323): craft\services\Plugins->loadPlugins()
#7 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/src/web/Application.php(112): craft\web\Application->_postInit()
#8 MY_PATH_HERE/httpdocs/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init()
#9 MY_PATH_HERE/httpdocs/vendor/yiisoft/yii2/base/Application.php(206): yii\base\BaseObject->__construct(Array)
#10 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/src/web/Application.php(100): yii\base\Application->__construct(Array)
#11 [internal function]: craft\web\Application->__construct(Array)
#12 MY_PATH_HERE/httpdocs/vendor/yiisoft/yii2/di/Container.php(384): ReflectionClass->newInstanceArgs(Array)
#13 MY_PATH_HERE/httpdocs/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\web\Appli...', Array, Array)
#14 MY_PATH_HERE/httpdocs/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('craft\web\Appli...', Array, Array)
#15 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/bootstrap/bootstrap.php(248): yii\BaseYii::createObject(Array)
#16 MY_PATH_HERE/httpdocs/vendor/craftcms/cms/bootstrap/web.php(52): require('/var/www/vhosts...')
#17 MY_PATH_HERE/httpdocs/web/index.php(20): require('/var/www/vhosts...')
#18 {main}
2019-07-25 02:08:46 [90.187.46.237][-][9uqpp5kd4tjetv2800ephi81ft][info][application] $_GET = [
'p' => 'admin/actions/pluginstore/install/migrate'
]
Hi,
great plugin btw!
I'm trying to use the plugin together with Contactus, form part is fine, but when I try to get the cryptograpgher instance in config/contact-us.php it cant load it, any change to load maybe plugin somehow at load, so I get access to plugin in that moment?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.