473,608 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting wrong decrypted value

2 New Member
Expand|Select|Wrap|Line Numbers
  1. my $iv = '0000000000000000';
  2.  
  3.      my $cipher = Crypt::CBC->new(
  4.                                    -key       => $key,
  5.                                    -cipher    => "Crypt::OpenSSL::AES",
  6.                                    -iv          => $iv,
  7.                                    -literal_Key => 1,
  8.                                    -header => 'none',
  9.                                    -padding => 'default'
  10.      );
  11.  
  12. $encrypt_decrypt_data = $cipher->decrypt_hex($data);
I am getting wrong decrypted value and also the i need to use PKCS#7 padding but i am not to change in the above cipher.Please help me to resolve this
Sep 13 '17 #1
2 4956
Rabbit
12,516 Recognized Expert Moderator MVP
You only provide half the puzzle here. Where's the code that encrypts the data?
Sep 13 '17 #2
NeetuG
2 New Member
Hi,
actually I have been provided only with the encrypted data and key value and the above syntax i am using for decrypting, but its returning binary coded value whereas i have used hex syntax to decrypt
Sep 14 '17 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3811
by: Sashi | last post by:
Two questions: (1) I can pull the text of an XML element as a string just fine using code as such: strSomeString = myXmlDoc.SelectSingleNode("/Element1/Element2/Element3", myXmlNSMgr).InnerText;
0
1100
by: Lisa Jones | last post by:
Hi Has anyone see this problem in ADO.Net when deleting a record (assuming that the table has identity increment Index) result in getting wrong index key if right after adding the record the table query for the added recorded Index key. Anyone knows what would be the best way to solve this problem Clearing dataset and refilling it won’t work if you are using web services. Any suggestion or help will be highly appreciated Thank Lisa...
2
3234
by: K B | last post by:
Hi, I'm using the following and the insert portion works fine but I'm not getting the return value (TicketID) which is the identify column of the table. I can't figure out what I'm missing; all examples I see use stored procs but I need to use a string command for this. Dim sSQL As String = "INSERT INTO eTicket(Priority, Category) VALUES(@iPriority, @iCategory)" Dim cmd As DbCommand = db.GetSqlStringCommand(sSQL) db.AddInParameter(cmd,...
7
16263
by: pooba53 | last post by:
I am working with VB .NET 2003. Let's say my main form is called Form1. I have to launch a new form (Form2) that gathers input from the user. How can I pass variable information back to Form1 before calling the Me.close() on Form2? -Stumped
0
1456
by: =?Utf-8?B?UHVjY2E=?= | last post by:
-- Hi, I'm using vs2005,. .net 2.0 for windows applicaiton. I'm doing drag and drop of 1 row of data at a time between 2 datagridview controls. I'm using the myDataGridView.DragDrop event to get the row info as follow: DataGridView.HitTestInfor rowInfo = myDataGridView.HitTest(e.X, e.Y); rowInfo.RowIndex is the value I use to determin which row the drop occur at the target datagridview but I'm getting wrong row information. Why is that...
2
1717
by: programmerboy | last post by:
This questions is pretty easy, but let me ask since I wasn't able to figure it out. why I am always getting the first value from DropDownList when I have ddlStates.SelectedItem.Value; Autopostback = false; EnableViewState = true;
2
2419
by: preeti13 | last post by:
Hi guys i am here with my another probelm please help me.trying insert the value into the data base but getting the null value error .I am getting thsi error Cannot insert the value NULL into column 'EmployeeID', table 'Accomplishments.dbo.Accomplishment'; column does not allow nulls. INSERT fails. The statement has been terminated. and my code is this using System; using System.Collections;
13
2069
by: jcato77 | last post by:
I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct code but it's not working. Help is greatly appreciated class Inventory3 { public static final int MAXIMUM_ITEMS = 4; private static Product product = new Product; public static void...
0
2111
by: sumansms | last post by:
Hi All, I am getting wrong date when I am using DateTime.Parse function. The following is the code.. DateValue = DateTime.Parse(datarow.ToString()).ToString("MM/dd/yyyy"); I am taking the data from a proc keeping it in a datarow. While displaying the value I am getting the date value one less then it is in the DB. e.g. 3/31/2010 values comes as 3/30/2010 (for some timezone). This is a code written by someone else so basically I need to...
2
2382
by: jagadeeshaHS | last post by:
Hi, getting invalid atoi value for the below program, help me resolving this issue. #include <stdlib.h> #include <stdio.h> #include <math.h> int main () { char *num = "222211113333"; int atNum ;
0
8063
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8003
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8498
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8478
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3962
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1331
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.