Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
lib64
/
perl5
/
vendor_perl
/
Razor2
/
Engine
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
VR8.pm
760 B
-rw-r--r--
2019-06-03 21:54:45
Edit
Del
Editing: VR8.pm
(760 B)
Path: /usr/lib64/perl5/vendor_perl/Razor2/Engine/VR8.pm
Back
package Razor2::Engine::VR8; use Razor2::Signature::Whiplash; use Razor2::String qw(hextobase64); use Data::Dumper; sub new { my ( $class, %args ) = @_; my $self = bless { description => 'whiplash', has_greet_param => 0, whiplash => new Razor2::Signature::Whiplash, rm => $args{RM}, }, $class; die unless $self; return $self; } sub signature { my ( $self, $text ) = @_; my ( $sigs, $meta ) = $self->{whiplash}->whiplash($$text); my @sigs_to_return; return unless $sigs; if ( scalar @$sigs ) { for (@$sigs) { push @sigs_to_return, hextobase64($_); } } else { return; } return \@sigs_to_return; } 1;