Encryption of notepad file
Hello Gurus,
I need to encrypt a notepad file containing some information. This notepad is the result of an ABAP program.
For encryption we need to run an executable file from MS DOS prompt.
I have to open command prompt and then choose the .EXE file and the notepad file. then press enter. Automatically the notepad content will be encrypted.
Currently this is done manually. I need to automate this process from ABAP program.
Can you give some ideas as to how this can be done in ABAP.
<< Please do not offer points >>
Thanks.
Edited by: Rob Burbank on Sep 7, 2010 4:07 PM
Hi,
there are provisions in sap to execute an external command.
You can serach oin SCN for execute sap external command and you will find lot of details and the steps to be followed.
based on the Presentation/Applications servers the methods are different.
Similar Messages
-
hi i'm using oracle ERP EBS R12
Oracle database 10g
i have a report . and i define the output in XML format
when i click on view output and save in the xls file [excel] then it works
i want the output in notepad file?
is there any possiblity to view output in notepad file without any space between the columns?
or
is there any possibility to make a tab delimited text format report?Hi,
Please see these docs.
How To Export Form Or Report Data From Oracle Applications And Into Excel [ID 372353.1]
How to Setup The Report Output to Different Viewer Types in Oracle Applications 11i [ID 184375.1]
How to Control the Name and the Application that Opens the Concurrent Request Output File on the Client? [ID 316752.1]
Thanks,
Hussein -
How do I access my encrypted User Account files from my Back Up hard drive? Time Machine was used to create the back up disk; File Vault was used to encrypt the files.
Thanks. I will try going through TM. Since my Simpletech is on the way out, I'll be plugging in a new external hard drive (other than the back-up drive) and trying to restore the library to the new drive. Any advice or warning if this is NOT the right thing to do?
Meanwhile, that is a great tip to do an alternate back-up using a different means. It's been tough to figure out how to "preserve access" to digital images and files for posterity, knowing the hardware will always fail/obsolesce sooner or later, and that "clouds" are only as good as their consistent and reliable accessibility. Upping the odds with redundancy will help dull the edge of my "access anxiety", though logically, it can never relieve it. Will look into
Carbon Copy Cloner. -
Encrypting A Single File in a Shared Folder
Hello all.
I would like to encrypt a single file to place in my shared folder for my wife to access.
Is there a way to do this?
Thanks in advance!An encrypted disk image should do it - see http://docs.info.apple.com/article.html?artnum=107333
-
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?
How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader? Get error "There was an error opening this document. Access denied". Disabling Protected Mode in Reader doesn’t always work.
McAfee: https://kc.mcafee.com/corporate/index?page=content&id=KB74299&actp=search&viewlocale=en_US &searchid=1240943327683If Reader ISN'T in the list of prpgrams to open with, click "Browse"
In the "Browse window" go to C/Program files [or Program Files (x86)]/Adobe/Reader 11/Reader
Select "AcroRd32.exe" and click "Open"
Make sure "Always use the selected program to open this kind of file" is checked and click "OK". -
Error while encrypting the xml file using asymmetric cipher...pls help
i am encryption the xml file using asymmetric cyper....
in one class , i am generating private key and public key using "RSA" algorithm..using 1024 byte initialization...
it is generating properly...
and after that in second class i am encrypting the xml file using "DESede" algorithm and i am using public key of above class..
but i am getting exceptione :
java.security.InvalidKeyException: Invalid key length: 162 bytes
at com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA6275)
at javax.crypto.Cipher.init(DashoA6275)
at XmlEncryption.getEncryptedData(XmlEncryption.java:147)
at XmlEncryption.encryptCompleteXmlFile(XmlEncryption.java:123)
at demoXmlEncApp.simulateBookSellersEnd(demoXmlEncApp.java:72)
at demoXmlEncApp.main(demoXmlEncApp.java:29)
so, what is that ?
i want to use RSA algo for key generatiion and DESede for cipher initialization .
is there any site for where source code of xml file encryption using asymmetric cipher is available?
pls, help me.....Sachin,
What sabre150 is trying to explain to you, is that encrypting data (such as an XML file) is a 2-step process. In the first step, you generate a symmetric key (such as DES, 3DES, AES) and encrypt your file with this key (and the appropriate mode and padding).
In order to ensure that your encrypted data cannot be decrypted by unauthorized individuals, you now need to protect the symmetric key. Encrypting your symmetric key with another symmetric key does not solve the problem, since you have a chain of symmetric keys that need to be encrypted into infinity.
Cryptographers solve this problem by encrypting the symmetric key with an asymmetric key, such as as RSA. To perform this second step, you generate an RSA key-pair, encrypt the symmetric key you generated in step 1 with the Public key of the RSA key-pair, and give the recipient of the encrypted XML file, access to the Private key of the RSA key-pair as well as the encrypted symmetric key.
The recipient, then uses the RSA Private key to decrypt the symmetric key first, and then uses the "plaintext" symmetric key to decrypt the XML file.
What sabre150 was also attempting to explain to you, is the traditional way of transporting an encrypted "blob" that consists of data + symmetric key. With a modern key-management system, combining the two would be unnecessary. -
Biztalk AS2 encryption error for file bigger than 100MB
I am getting following error when I am trying to receive file bigger than 100 MB. I was getting same error when I was trying file bigger than 5MB and I applied windows CU5. Now I can receive big file (I tested till 60 MB). New file which is coming is 110MB
and we start getting this error.
Can somebody help me to figure out this issue.
I am using Biztalk 2010 with windows 2008 server
A message received by adapter "HTTP" on receive location "RecLocAS2All" with URI "/xxxxxx/BTSHTTPReceive.dll" is suspended.
Error details: An output message of the component "Microsoft.BizTalk.EdiInt.PipelineComponents" in receive pipeline "Microsoft.BizTalk.EdiInt.DefaultPipelines.AS2Receive, Microsoft.BizTalk.Edi.EdiIntPipelines, Version=3.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" is suspended due to the following error:
An error occurred when decrypting an AS2 message..
The sequence number of the suspended message is 2.I tried passthrough pipeline and I can receive encrypted file.Now trying to write code to decrypt it but I can not. Based on certificate I can say it is RSASHAI, so using it for decrypt. But getting error at Convert.FromBase64String(text) where text
is encrypted test from file.
I am getting following error
The input is not a valid Base-64 string as it contains a non-base 64 character,
more than two padding characters, or an illegal character among the padding characters.
Can somebody help me to understand it and resolve this. Mean time trying
to convene customer for compressed file .Please help me to understand above error. -
How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?
Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
currently I am trying to verify how many users Lines are missing , Emp numbers , Phones from AD with HR list available to me.
I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
any’twhenCreatedtAcctEnabled’tGroups
Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
Can you modify this script to help me out :)
Hi,
Depending on what attributes you want.
Import-Module ActiveDirectory
#From a txt file
$USERS = Get-Content C:\Temp\USER-LIST.txt
$USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
#or from a csv file
$USERS = Import-CSV C:\Temp\USER-LIST.csv
$USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
Regards,
Dear
Gautam Ji<abbr class="affil"></abbr>
Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
| Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk -
Hi, guys.
I am planning to sell my ebook from my website. It is in Word format. I would like to create a PDF file for viewers since it is versatile, then encrypt the PDF file to prevent unauthorized distribution of my book. How do I do that?
Thanks
genesisIf you want to be friendly to your users, generate encrypted .epub format and not .pdf.
pdf is great for its original purpose of print preparation, but terrible for more flexible formats.
As different ereaders have different screen sizes and resolutions, and different people will want to read with different font sizes (**),
pdf format will be very hostile in all cases except the one that excactly fits how you make the pdf.
I think that InDesgin will create encrypted epub or pdf files for you.
For the encryption to be effective for your purposes you need to encrypt differently for different AdobeIDs.
Looks as if Adobe's official way to do that is Adobe Content Server.
I suspect the cost of all that adds up quite a bit; you may want to look at third party solutions that handle all the infrastructure for you.
(**) or even the same person: I change font sizes depending how tired I am. -
How to process a simple notepad file and extract something from it not all.
I am sending the text file from html page to servlet and i want to do something with that text file and the result would be in excel.
for example if my file contains:
Notepad file Contains:
CP STATE
MAU SB SBSTATE
NRM B WO
and i want only SB,SBSTATE in my excel file not MAU option in excel.
I want output in excel as:
SB SBSTATE
B WO
so please tell how to do this.
Please write some program to explain this,i will be very thankful to you.
BR//
Anubhav GulatiI am not angry, I am just seriously helping you to become a developer :)
I've suggested you to use BufferedReader. It's API is descriptive enough (as all other API's of Sun tho). And the official I/O tutorial of Sun is also very helpful. Further on you only need to play with String#substring(), String#indexOf() and/or String#matches(), which are all already basic knowledge of the Java String API.
Or ask us the specific question/problem where you're stucking with, while you're trying to develop it. -
Hello friendz.,,
I m having problem with textfile exncryption decryption in j2me..
Can abybode tell me how to encrypt/decrypt Text file using J2ME API's.......
PLZ help me .......
Thanx in advance
regards,
Paraghttp://www.mobilefish.com/developer/bouncycastle/bouncycastle.html
http://www-128.ibm.com/developerworks/library/j-midpds.html -
Save the export parameter as an excel or notepad file in ecatt
Hello,
Que: I want to save the export parameter value to an excel or a notepad file in my ecatt script?
Importing of notepad file can be handled as an external file variant input from test data container.
But I am not able to export the value to a file.
Kindly help.Well, dont know if that is like VB-Script
but you could give it a try ...
set xclapp = createObject("Excel.Application")
set xclwbk = xclapp.Workbook.New
set xclsht = xclwbk.Sheets("Tabelle1")
xclsht.Cells(1,1).Value = [your Parameters go here!]
set xclsht = Nothing
xclwbk.close
set xclwbk = nothing
xclapp.quit
set xclapp = Nothing -
How do I encrypt a data file so that only I can retrieve the info?
How do I encrypt a data file so that it cannot be read without the proper authority?
I have an application where the customer should not have access to the data I need to record for troubleshooting purposes. (there are industrial secrets I wish to protect) My plan is to record a datalog (currently I am producing a tab-delimited spreadsheet format) whenever the device is running and hide the files where they will probably not be found. But some sort of encryption or at least password protection would be better.
I've never tried to do this before, but thought it would be fairly easy. Maybe I'm just not looking in the right places.
Thanks
Solved!
Go to Solution.Well, you could look into something like DES, Triple DES, AES, etc. There are libries floating around for these written in LabVIEW. I'm not sure about the cost though.
If you want a really simple way to protect your data, just invert all or some of the bits in each byte of your file. It is super simple and turns a nice ASCII text file into noise when read from a text file.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Password protecting and encrypting received pdf file
Hello there,
how can I password protect (and encrypt) a pdf file that I received from someone else? For example, I may get a copy of my tax return from my accountant that I don't want anyone else to see on my computer or when I back up contents of my computer online.
I have only Adobe Reader 8 installed on my computer. So I am not writing these pdf files myself - I realize that then I would have full control over the security settings.
Microsoft Word and Excel files I can password protect. How can I do this for "received pdf files"?
Thank you for your help.You need Acrobat, not Reader.
Be aware that even then, PDF security is easy to bypass.
I use a Mac for the most part but isn't there any features in Windows that will allow you to protect folders?
Maybe you are looking for
-
How do I get rid of 'download' option when someone clicks on a photo on my website?
I mad my website in iWeb. How do I get rid of the 'download' option I see on the page. It appears when I click on a photo. If I click on 'slideshow' it is not there. I have my photos in folders on my website. Hope someone can help!
-
First. I'm new here, i've been looking for solutions on the boards but they can't solve my problem. So my problem is, since yesterday, I tried to connect my creative ZEN to the computer and the player show the message "FIRMWARE PROBLEM" Everytime I t
-
I just bought a WRT54G and out of the box I alread have a problem. I put the setup disk in the drive, fire up the disk, and I get an error that says "Setup Wizard MFC Application has encountered a problem and needs to close. We are sorry for the inco
-
How do i keep the window visible on top
I'm watching videos and want them to stay 'on top' of all other windows as I switch between applications...like word to explorer to safari to google...I want to keep my video playing visible on 'top' of all other windows.
-
Case insensitive search in CAF?
Is it possible to do case insensitive search in CAF using QueryFilter? By default it does case sensitive searches in data elements of Entity Services. I am using 7.0.