ubuntu: destroy a huge binary file and make it non-readable.

classic Classic list List threaded Threaded
53 messages Options
123
Reply | Threaded
Open this post in threaded view
|

ubuntu: destroy a huge binary file and make it non-readable.

ping
may sounds like a sin, but I just wanna know the best way to change a binary file without actually open it (since it's really huge)?


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Johnny Rosenberg
2014/1/25 ping song <[hidden email]>
may sounds like a sin, but I just wanna know the best way to change a binary file without actually open it (since it's really huge)?

I'm not sure I understand the question. If you want to change the file making it behave in a different way somehow, you need to know the specifications of the file. It's a binary file, as you said, and if you don't know anything about it, its content doesn't seem to make any sense.



Johnny Rosenberg
 


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Liam Proven
In reply to this post by ping
On 25 January 2014 16:17, ping song <[hidden email]> wrote:
> may sounds like a sin, but I just wanna know the best way to change a binary
> file without actually open it (since it's really huge)?

Your subject says "destroy". To me that would seem to mean securely erase.

But your body text seems to ask about editing it.

As such, I do not understand what you mean.

If you do mean secure erase, read this:

http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner


--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

ping
thanks. 
but guess I haven't make it clear.

my goal is to :
1) not to delete the file, not to chmod either
2) don't change the file size either
3) make the gzip file not being able to ungzipped and viewed - just to mess up the file and make it not usable (what I meant "destroy").

I finally use GNU "head" to delete the last a couple of lines like this:

head --lines=-100 myfile.gz > newfile.gz

after this , gzip can't recogize it. that's it.

but , I doubt this is not the safe way, coz an gzip expert might be easily open the binary file and fixed the missed lines (I'm not sure).

maybe I better 'sort' the whole file, or, swap randomly some lines, so there is no way the file can be read...



On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]> wrote:
On 25 January 2014 16:17, ping song <[hidden email]> wrote:
> may sounds like a sin, but I just wanna know the best way to change a binary
> file without actually open it (since it's really huge)?

Your subject says "destroy". To me that would seem to mean securely erase.

But your body text seems to ask about editing it.

As such, I do not understand what you mean.

If you do mean secure erase, read this:

http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner


--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: <a href="tel:%2B44%2020-8685-0498" value="+442086850498">+44 20-8685-0498 • Cell: <a href="tel:%2B44%207939-087884" value="+447939087884">+44 7939-087884

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Karl Auer
On Sat, 2014-01-25 at 16:40 -0500, ping song wrote:
> my goal is to :
> 1) not to delete the file, not to chmod either
> 2) don't change the file size either
> 3) make the gzip file not being able to ungzipped and viewed - just to mess
> up the file and make it not usable (what I meant "destroy").

man shred

> I finally use GNU "head" to delete the last a couple of lines like this:

Your process will leave most of the file perfectly readable to ordinary
file inspection tools. shred will not.

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Johnny Rosenberg
In reply to this post by ping
2014-01-25 ping song <[hidden email]>
thanks. 
but guess I haven't make it clear.

my goal is to :
1) not to delete the file, not to chmod either
2) don't change the file size either
3) make the gzip file not being able to ungzipped and viewed - just to mess up the file and make it not usable (what I meant "destroy").

I finally use GNU "head" to delete the last a couple of lines like this:

head --lines=-100 myfile.gz > newfile.gz

after this , gzip can't recogize it. that's it.

but , I doubt this is not the safe way, coz an gzip expert might be easily open the binary file and fixed the missed lines (I'm not sure).

maybe I better 'sort' the whole file, or, swap randomly some lines, so there is no way the file can be read...


I know this is way off topic, but I'm just curious: Why do you want to do this? Is the file ever going to be readable again? If not, why not just delete it…? If you want to be able to open the file yourself but nobody else, why not just protect it (encrypt it) with a password?

Johnny Rosenberg




On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]> wrote:
On 25 January 2014 16:17, ping song <[hidden email]> wrote:
> may sounds like a sin, but I just wanna know the best way to change a binary
> file without actually open it (since it's really huge)?

Your subject says "destroy". To me that would seem to mean securely erase.

But your body text seems to ask about editing it.

As such, I do not understand what you mean.

If you do mean secure erase, read this:

http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner


--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: <a href="tel:%2B44%2020-8685-0498" value="+442086850498" target="_blank">+44 20-8685-0498 • Cell: <a href="tel:%2B44%207939-087884" value="+447939087884" target="_blank">+44 7939-087884

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

John R. Sowden
On 01/26/2014 01:51 AM, Johnny Rosenberg wrote:
2014-01-25 ping song <[hidden email]>
thanks. 
but guess I haven't make it clear.

my goal is to :
1) not to delete the file, not to chmod either
2) don't change the file size either
3) make the gzip file not being able to ungzipped and viewed - just to mess up the file and make it not usable (what I meant "destroy").

I finally use GNU "head" to delete the last a couple of lines like this:

head --lines=-100 myfile.gz > newfile.gz

after this , gzip can't recogize it. that's it.

but , I doubt this is not the safe way, coz an gzip expert might be easily open the binary file and fixed the missed lines (I'm not sure).

maybe I better 'sort' the whole file, or, swap randomly some lines, so there is no way the file can be read...


I know this is way off topic, but I'm just curious: Why do you want to do this? Is the file ever going to be readable again? If not, why not just delete it…? If you want to be able to open the file yourself but nobody else, why not just protect it (encrypt it) with a password?

Johnny Rosenberg




On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]> wrote:
On 25 January 2014 16:17, ping song <[hidden email]> wrote:
> may sounds like a sin, but I just wanna know the best way to change a binary
> file without actually open it (since it's really huge)?

Your subject says "destroy". To me that would seem to mean securely erase.

But your body text seems to ask about editing it.

As such, I do not understand what you mean.

If you do mean secure erase, read this:

http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner


--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: <a moz-do-not-send="true" href="tel:%2B44%2020-8685-0498" value="+442086850498" target="_blank">+44 20-8685-0498 • Cell: <a moz-do-not-send="true" href="tel:%2B44%207939-087884" value="+447939087884" target="_blank">+44 7939-087884


we're all sitting on the edge of our chairs waiting for this answer  :)


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
This package may help you:
https://launchpad.net/gopanam/+download

You encrypt the file with a key, and if the key is unknown, even the
developer can't decrypt it.

On 1/26/14, John R. Sowden <[hidden email]> wrote:

> On 01/26/2014 01:51 AM, Johnny Rosenberg wrote:
>> 2014-01-25 ping song <[hidden email]
>> <mailto:[hidden email]>>
>>
>>     thanks.
>>     but guess I haven't make it clear.
>>
>>     my goal is to :
>>     1) not to delete the file, not to chmod either
>>     2) don't change the file size either
>>     3) make the gzip file not being able to ungzipped and viewed -
>>     just to mess up the file and make it not usable (what I meant
>>     "destroy").
>>
>>     I finally use GNU "head" to delete the last a couple of lines like
>>     this:
>>
>>     head --lines=-100 myfile.gz > newfile.gz
>>
>>     after this , gzip can't recogize it. that's it.
>>
>>     but , I doubt this is not the safe way, coz an gzip expert might
>>     be easily open the binary file and fixed the missed lines (I'm not
>>     sure).
>>
>>     maybe I better 'sort' the whole file, or, swap randomly some
>>     lines, so there is no way the file can be read...
>>
>>
>>
>> I know this is way off topic, but I'm just curious: Why do you want to
>> do this? Is the file ever going to be readable again? If not, why not
>> just delete it...? If you want to be able to open the file yourself
>> but nobody else, why not just protect it (encrypt it) with a password?
>>
>> Johnny Rosenberg
>>
>>
>>
>>
>>     On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]
>>     <mailto:[hidden email]>> wrote:
>>
>>         On 25 January 2014 16:17, ping song <[hidden email]
>>         <mailto:[hidden email]>> wrote:
>>         > may sounds like a sin, but I just wanna know the best way to
>>         change a binary
>>         > file without actually open it (since it's really huge)?
>>
>>         Your subject says "destroy". To me that would seem to mean
>>         securely erase.
>>
>>         But your body text seems to ask about editing it.
>>
>>         As such, I do not understand what you mean.
>>
>>         If you do mean secure erase, read this:
>>
>>
>> http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner
>>
>>
>>         --
>>         Liam Proven . Profile: http://lproven.livejournal.com/profile
>>         Email: [hidden email] <mailto:[hidden email]> .
>>         GMail/G+/Twitter/Flickr/Facebook: lproven
>>         MSN: [hidden email] <mailto:[hidden email]> .
>>         Skype/AIM/Yahoo/LinkedIn: liamproven
>>         Tel: +44 20-8685-0498 <tel:%2B44%2020-8685-0498> . Cell: +44
>>         7939-087884 <tel:%2B44%207939-087884>
>>
>>
> we're all sitting on the edge of our chairs waiting for this answer :)
>
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Karl Auer
On Sun, 2014-01-26 at 17:04 +0530, Nandakumar wrote:
> This package may help you:
> https://launchpad.net/gopanam/+download
>
> You encrypt the file with a key, and if the key is unknown, even the
> developer can't decrypt it.

I haven't tried this program, but from the description (including the
phrase "output file") it seems to me that the program generates a new
file that is an encrypted version of the old file. It's not clear what
happens to the old file - presumably it is deleted? Anyway, if it
doesn't operate on the file in place, it does not meet the requirements
of the OP.

Interesting proggy though.

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([hidden email])
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
Yes, I understand. Please wait. I'll upload a new program soon.
Probably within one hour.

On 1/26/14, Karl Auer <[hidden email]> wrote:

> On Sun, 2014-01-26 at 17:04 +0530, Nandakumar wrote:
>> This package may help you:
>> https://launchpad.net/gopanam/+download
>>
>> You encrypt the file with a key, and if the key is unknown, even the
>> developer can't decrypt it.
>
> I haven't tried this program, but from the description (including the
> phrase "output file") it seems to me that the program generates a new
> file that is an encrypted version of the old file. It's not clear what
> happens to the old file - presumably it is deleted? Anyway, if it
> doesn't operate on the file in place, it does not meet the requirements
> of the OP.
>
> Interesting proggy though.
>
> Regards, K.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Karl Auer ([hidden email])
> http://www.biplane.com.au/kauer
> http://twitter.com/kauer389
>
> GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
> Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A
>
>
>
> --
> ubuntu-users mailing list
> [hidden email]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

robert rottermann
In reply to this post by Nandakumar
hi Nandakumar,
can you tel us a bit more about that program
is there a repository somewher so we migth use/help to debut it?
thanks
robert
On 26.01.2014 12:34, Nandakumar wrote:

> This package may help you:
> https://launchpad.net/gopanam/+download
>
> You encrypt the file with a key, and if the key is unknown, even the
> developer can't decrypt it.
>
> On 1/26/14, John R. Sowden <[hidden email]> wrote:
>> On 01/26/2014 01:51 AM, Johnny Rosenberg wrote:
>>> 2014-01-25 ping song <[hidden email]
>>> <mailto:[hidden email]>>
>>>
>>>      thanks.
>>>      but guess I haven't make it clear.
>>>
>>>      my goal is to :
>>>      1) not to delete the file, not to chmod either
>>>      2) don't change the file size either
>>>      3) make the gzip file not being able to ungzipped and viewed -
>>>      just to mess up the file and make it not usable (what I meant
>>>      "destroy").
>>>
>>>      I finally use GNU "head" to delete the last a couple of lines like
>>>      this:
>>>
>>>      head --lines=-100 myfile.gz > newfile.gz
>>>
>>>      after this , gzip can't recogize it. that's it.
>>>
>>>      but , I doubt this is not the safe way, coz an gzip expert might
>>>      be easily open the binary file and fixed the missed lines (I'm not
>>>      sure).
>>>
>>>      maybe I better 'sort' the whole file, or, swap randomly some
>>>      lines, so there is no way the file can be read...
>>>
>>>
>>>
>>> I know this is way off topic, but I'm just curious: Why do you want to
>>> do this? Is the file ever going to be readable again? If not, why not
>>> just delete it...? If you want to be able to open the file yourself
>>> but nobody else, why not just protect it (encrypt it) with a password?
>>>
>>> Johnny Rosenberg
>>>
>>>
>>>
>>>
>>>      On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]
>>>      <mailto:[hidden email]>> wrote:
>>>
>>>          On 25 January 2014 16:17, ping song <[hidden email]
>>>          <mailto:[hidden email]>> wrote:
>>>          > may sounds like a sin, but I just wanna know the best way to
>>>          change a binary
>>>          > file without actually open it (since it's really huge)?
>>>
>>>          Your subject says "destroy". To me that would seem to mean
>>>          securely erase.
>>>
>>>          But your body text seems to ask about editing it.
>>>
>>>          As such, I do not understand what you mean.
>>>
>>>          If you do mean secure erase, read this:
>>>
>>>
>>> http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner
>>>
>>>
>>>          --
>>>          Liam Proven . Profile: http://lproven.livejournal.com/profile
>>>          Email: [hidden email] <mailto:[hidden email]> .
>>>          GMail/G+/Twitter/Flickr/Facebook: lproven
>>>          MSN: [hidden email] <mailto:[hidden email]> .
>>>          Skype/AIM/Yahoo/LinkedIn: liamproven
>>>          Tel: +44 20-8685-0498 <tel:%2B44%2020-8685-0498> . Cell: +44
>>>          7939-087884 <tel:%2B44%207939-087884>
>>>
>>>
>> we're all sitting on the edge of our chairs waiting for this answer :)
>>
>>


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
Hi,
The program is ready even though it is not named yet! I call it simply
'File Destroyer'. I think it meets your requirements.

An alpha version can be downloaded:
http://nandakumar.co.in/private/filedest

run this command to install
sudo cp filedest /usr/bin/

usage: filedest <inputfile>

Use carefully since no crash-handling functions are written yet.

I can release it soon (of course, under GPL).

On 1/26/14, robert rottermann <[hidden email]> wrote:

> hi Nandakumar,
> can you tel us a bit more about that program
> is there a repository somewher so we migth use/help to debut it?
> thanks
> robert
> On 26.01.2014 12:34, Nandakumar wrote:
>> This package may help you:
>> https://launchpad.net/gopanam/+download
>>
>> You encrypt the file with a key, and if the key is unknown, even the
>> developer can't decrypt it.
>>
>> On 1/26/14, John R. Sowden <[hidden email]> wrote:
>>> On 01/26/2014 01:51 AM, Johnny Rosenberg wrote:
>>>> 2014-01-25 ping song <[hidden email]
>>>> <mailto:[hidden email]>>
>>>>
>>>>      thanks.
>>>>      but guess I haven't make it clear.
>>>>
>>>>      my goal is to :
>>>>      1) not to delete the file, not to chmod either
>>>>      2) don't change the file size either
>>>>      3) make the gzip file not being able to ungzipped and viewed -
>>>>      just to mess up the file and make it not usable (what I meant
>>>>      "destroy").
>>>>
>>>>      I finally use GNU "head" to delete the last a couple of lines like
>>>>      this:
>>>>
>>>>      head --lines=-100 myfile.gz > newfile.gz
>>>>
>>>>      after this , gzip can't recogize it. that's it.
>>>>
>>>>      but , I doubt this is not the safe way, coz an gzip expert might
>>>>      be easily open the binary file and fixed the missed lines (I'm not
>>>>      sure).
>>>>
>>>>      maybe I better 'sort' the whole file, or, swap randomly some
>>>>      lines, so there is no way the file can be read...
>>>>
>>>>
>>>>
>>>> I know this is way off topic, but I'm just curious: Why do you want to
>>>> do this? Is the file ever going to be readable again? If not, why not
>>>> just delete it...? If you want to be able to open the file yourself
>>>> but nobody else, why not just protect it (encrypt it) with a password?
>>>>
>>>> Johnny Rosenberg
>>>>
>>>>
>>>>
>>>>
>>>>      On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]
>>>>      <mailto:[hidden email]>> wrote:
>>>>
>>>>          On 25 January 2014 16:17, ping song <[hidden email]
>>>>          <mailto:[hidden email]>> wrote:
>>>>          > may sounds like a sin, but I just wanna know the best way to
>>>>          change a binary
>>>>          > file without actually open it (since it's really huge)?
>>>>
>>>>          Your subject says "destroy". To me that would seem to mean
>>>>          securely erase.
>>>>
>>>>          But your body text seems to ask about editing it.
>>>>
>>>>          As such, I do not understand what you mean.
>>>>
>>>>          If you do mean secure erase, read this:
>>>>
>>>>
>>>> http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner
>>>>
>>>>
>>>>          --
>>>>          Liam Proven . Profile: http://lproven.livejournal.com/profile
>>>>          Email: [hidden email] <mailto:[hidden email]> .
>>>>          GMail/G+/Twitter/Flickr/Facebook: lproven
>>>>          MSN: [hidden email] <mailto:[hidden email]> .
>>>>          Skype/AIM/Yahoo/LinkedIn: liamproven
>>>>          Tel: +44 20-8685-0498 <tel:%2B44%2020-8685-0498> . Cell: +44
>>>>          7939-087884 <tel:%2B44%207939-087884>
>>>>
>>>>
>>> we're all sitting on the edge of our chairs waiting for this answer :)
>>>
>>>
>
>
> --
> ubuntu-users mailing list
> [hidden email]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
I think the upcoming version of Gopanam can write the encrypted file
into the same input file. It'll be a new feature.

On 1/26/14, Nandakumar <[hidden email]> wrote:

> Hi,
> The program is ready even though it is not named yet! I call it simply
> 'File Destroyer'. I think it meets your requirements.
>
> An alpha version can be downloaded:
> http://nandakumar.co.in/private/filedest
>
> run this command to install
> sudo cp filedest /usr/bin/
>
> usage: filedest <inputfile>
>
> Use carefully since no crash-handling functions are written yet.
>
> I can release it soon (of course, under GPL).
>
> On 1/26/14, robert rottermann <[hidden email]> wrote:
>> hi Nandakumar,
>> can you tel us a bit more about that program
>> is there a repository somewher so we migth use/help to debut it?
>> thanks
>> robert
>> On 26.01.2014 12:34, Nandakumar wrote:
>>> This package may help you:
>>> https://launchpad.net/gopanam/+download
>>>
>>> You encrypt the file with a key, and if the key is unknown, even the
>>> developer can't decrypt it.
>>>
>>> On 1/26/14, John R. Sowden <[hidden email]> wrote:
>>>> On 01/26/2014 01:51 AM, Johnny Rosenberg wrote:
>>>>> 2014-01-25 ping song <[hidden email]
>>>>> <mailto:[hidden email]>>
>>>>>
>>>>>      thanks.
>>>>>      but guess I haven't make it clear.
>>>>>
>>>>>      my goal is to :
>>>>>      1) not to delete the file, not to chmod either
>>>>>      2) don't change the file size either
>>>>>      3) make the gzip file not being able to ungzipped and viewed -
>>>>>      just to mess up the file and make it not usable (what I meant
>>>>>      "destroy").
>>>>>
>>>>>      I finally use GNU "head" to delete the last a couple of lines
>>>>> like
>>>>>      this:
>>>>>
>>>>>      head --lines=-100 myfile.gz > newfile.gz
>>>>>
>>>>>      after this , gzip can't recogize it. that's it.
>>>>>
>>>>>      but , I doubt this is not the safe way, coz an gzip expert might
>>>>>      be easily open the binary file and fixed the missed lines (I'm
>>>>> not
>>>>>      sure).
>>>>>
>>>>>      maybe I better 'sort' the whole file, or, swap randomly some
>>>>>      lines, so there is no way the file can be read...
>>>>>
>>>>>
>>>>>
>>>>> I know this is way off topic, but I'm just curious: Why do you want to
>>>>> do this? Is the file ever going to be readable again? If not, why not
>>>>> just delete it...? If you want to be able to open the file yourself
>>>>> but nobody else, why not just protect it (encrypt it) with a password?
>>>>>
>>>>> Johnny Rosenberg
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>      On Sat, Jan 25, 2014 at 12:09 PM, Liam Proven <[hidden email]
>>>>>      <mailto:[hidden email]>> wrote:
>>>>>
>>>>>          On 25 January 2014 16:17, ping song <[hidden email]
>>>>>          <mailto:[hidden email]>> wrote:
>>>>>          > may sounds like a sin, but I just wanna know the best way
>>>>> to
>>>>>          change a binary
>>>>>          > file without actually open it (since it's really huge)?
>>>>>
>>>>>          Your subject says "destroy". To me that would seem to mean
>>>>>          securely erase.
>>>>>
>>>>>          But your body text seems to ask about editing it.
>>>>>
>>>>>          As such, I do not understand what you mean.
>>>>>
>>>>>          If you do mean secure erase, read this:
>>>>>
>>>>>
>>>>> http://askubuntu.com/questions/57572/how-to-delete-files-in-secure-manner
>>>>>
>>>>>
>>>>>          --
>>>>>          Liam Proven . Profile: http://lproven.livejournal.com/profile
>>>>>          Email: [hidden email] <mailto:[hidden email]> .
>>>>>          GMail/G+/Twitter/Flickr/Facebook: lproven
>>>>>          MSN: [hidden email] <mailto:[hidden email]> .
>>>>>          Skype/AIM/Yahoo/LinkedIn: liamproven
>>>>>          Tel: +44 20-8685-0498 <tel:%2B44%2020-8685-0498> . Cell: +44
>>>>>          7939-087884 <tel:%2B44%207939-087884>
>>>>>
>>>>>
>>>> we're all sitting on the edge of our chairs waiting for this answer :)
>>>>
>>>>
>>
>>
>> --
>> ubuntu-users mailing list
>> [hidden email]
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nils Kassube-2
In reply to this post by Nandakumar
Nandakumar wrote:

> The program is ready even though it is not named yet! I call it simply
> 'File Destroyer'. I think it meets your requirements.
>
> An alpha version can be downloaded:
> http://nandakumar.co.in/private/filedest
>
> run this command to install
> sudo cp filedest /usr/bin/
>
> usage: filedest <inputfile>
>
> Use carefully since no crash-handling functions are written yet.

Well, if it is not even tested, I would suggest to not install it in
/usr/bin but to run it from the home directory instead. OTOH, if it
isn't tested, it isn't clear if the program does what the OP needs.
Therefore it is probably better to use the program shred instead which
someone mentioned earlier and which does what the OP asked for according
to the man page.

> >> This package may help you:
> >> https://launchpad.net/gopanam/+download
> >>
> >> You encrypt the file with a key, and if the key is unknown, even
> >> the
> >> developer can't decrypt it.

I'd like to point out that the statement "even the developer can't
decrypt it" is meaningless. Good encryption is hard and while the
algorithm may be good, it may be not good enough that a crypto expert
can't decode it anyway. Please note: I am no crypto expert, so I can't
judge if the program is useful or not. I just stumbled across that
flawed statement.


Nils


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
The program is tested.

>> I'd like to point out that the statement "even the developer can't
decrypt it" is meaningless.
The encryption algorithm simply depends on the key. The key is not
recorded while encryption too. The source code is also open. And if
you read it, you will understand that the only way to hack is trial
and error method. The success of encryption depends on the length and
strength of the key.

On 1/26/14, Nils Kassube <[hidden email]> wrote:

> Nandakumar wrote:
>> The program is ready even though it is not named yet! I call it simply
>> 'File Destroyer'. I think it meets your requirements.
>>
>> An alpha version can be downloaded:
>> http://nandakumar.co.in/private/filedest
>>
>> run this command to install
>> sudo cp filedest /usr/bin/
>>
>> usage: filedest <inputfile>
>>
>> Use carefully since no crash-handling functions are written yet.
>
> Well, if it is not even tested, I would suggest to not install it in
> /usr/bin but to run it from the home directory instead. OTOH, if it
> isn't tested, it isn't clear if the program does what the OP needs.
> Therefore it is probably better to use the program shred instead which
> someone mentioned earlier and which does what the OP asked for according
> to the man page.
>
>> >> This package may help you:
>> >> https://launchpad.net/gopanam/+download
>> >>
>> >> You encrypt the file with a key, and if the key is unknown, even
>> >> the
>> >> developer can't decrypt it.
>
> I'd like to point out that the statement "even the developer can't
> decrypt it" is meaningless. Good encryption is hard and while the
> algorithm may be good, it may be not good enough that a crypto expert
> can't decode it anyway. Please note: I am no crypto expert, so I can't
> judge if the program is useful or not. I just stumbled across that
> flawed statement.
>
>
> Nils
>
>
> --
> ubuntu-users mailing list
> [hidden email]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nils Kassube-2
Nandakumar wrote:
> >> I'd like to point out that the statement "even the developer can't
> decrypt it" is meaningless.
> The encryption algorithm simply depends on the key. The key is not
> recorded while encryption too. The source code is also open. And if
> you read it, you will understand that the only way to hack is trial
> and error method. The success of encryption depends on the length and
> strength of the key.

Sorry, but I can't see the source code at the URLs you provided:
<http://nandakumar.co.in/private/filedest> or
<https://launchpad.net/gopanam/+download>. But maybe I'm missing
something?

Anyway, I don't dispute that the encryption works. But it doesn't matter
if the key is recorded or not. If the output is not sufficiently random,
there may be ways to decrypt it even without knowing the key.

To explain why I criticize your statement, let's think of an example:
If I would write an encryption program where I use the wellknown Caesar
cipher (*), the output may be unreadable for me and any other normal
person. Therefore I could state that "the developer can't decrypt the
output without the key", but that doesn't mean that there aren't smarter
people than me who easily decipher the output using some statistics and
knowledge of character distribution in normal languages.

As we don't know about the data the OP wants to "destroy", we don't know
if the use of a simple encryption like my example might be good enough
or if something better is needed. Therefore the statement that "I can't
decrypt the output" does not necessarily mean that my program is useful,
i.e. the statement is meaningless. And by pointing out that the
statement is meaningless I merely wanted to give the OP a hint that this
should not be a base for the decision to use the program.


Nils

(*) The Caesar cipher simply shifts the characters of the alphabet a
fixed amount of places, which makes the new alphabet e.g.
"cdefghijklmnopqrstuvwxyzab" instead of the normal sequence starting
with "a".


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
OK, I understand. But I think even a simple cipher technique will be
enough for BINARY files.
(As a fun, I'll change the statement 'even the developer can't' to
'the developer can't' since I'm not so smarter to decrypt ;) But I'll
try to become smarter!)

On 1/26/14, Nils Kassube <[hidden email]> wrote:

> Nandakumar wrote:
>> >> I'd like to point out that the statement "even the developer can't
>> decrypt it" is meaningless.
>> The encryption algorithm simply depends on the key. The key is not
>> recorded while encryption too. The source code is also open. And if
>> you read it, you will understand that the only way to hack is trial
>> and error method. The success of encryption depends on the length and
>> strength of the key.
>
> Sorry, but I can't see the source code at the URLs you provided:
> <http://nandakumar.co.in/private/filedest> or
> <https://launchpad.net/gopanam/+download>. But maybe I'm missing
> something?
>
> Anyway, I don't dispute that the encryption works. But it doesn't matter
> if the key is recorded or not. If the output is not sufficiently random,
> there may be ways to decrypt it even without knowing the key.
>
> To explain why I criticize your statement, let's think of an example:
> If I would write an encryption program where I use the wellknown Caesar
> cipher (*), the output may be unreadable for me and any other normal
> person. Therefore I could state that "the developer can't decrypt the
> output without the key", but that doesn't mean that there aren't smarter
> people than me who easily decipher the output using some statistics and
> knowledge of character distribution in normal languages.
>
> As we don't know about the data the OP wants to "destroy", we don't know
> if the use of a simple encryption like my example might be good enough
> or if something better is needed. Therefore the statement that "I can't
> decrypt the output" does not necessarily mean that my program is useful,
> i.e. the statement is meaningless. And by pointing out that the
> statement is meaningless I merely wanted to give the OP a hint that this
> should not be a base for the decision to use the program.
>
>
> Nils
>
> (*) The Caesar cipher simply shifts the characters of the alphabet a
> fixed amount of places, which makes the new alphabet e.g.
> "cdefghijklmnopqrstuvwxyzab" instead of the normal sequence starting
> with "a".
>
>
> --
> ubuntu-users mailing list
> [hidden email]
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nandakumar
Gopanam works in a different way. An 'a' will not be and 'e' always,
so the knowledge of incidents of alphabets in a language won't be
sufficient to decrypt the data.

For example

Hello, World!
changes to
©Øßãޞ„ÇÐåßې|

with the key 'password'

Note that the consecutive 'l's are not encrypted to same.

On 1/26/14, Nandakumar <[hidden email]> wrote:

> OK, I understand. But I think even a simple cipher technique will be
> enough for BINARY files.
> (As a fun, I'll change the statement 'even the developer can't' to
> 'the developer can't' since I'm not so smarter to decrypt ;) But I'll
> try to become smarter!)
>
> On 1/26/14, Nils Kassube <[hidden email]> wrote:
>> Nandakumar wrote:
>>> >> I'd like to point out that the statement "even the developer can't
>>> decrypt it" is meaningless.
>>> The encryption algorithm simply depends on the key. The key is not
>>> recorded while encryption too. The source code is also open. And if
>>> you read it, you will understand that the only way to hack is trial
>>> and error method. The success of encryption depends on the length and
>>> strength of the key.
>>
>> Sorry, but I can't see the source code at the URLs you provided:
>> <http://nandakumar.co.in/private/filedest> or
>> <https://launchpad.net/gopanam/+download>. But maybe I'm missing
>> something?
>>
>> Anyway, I don't dispute that the encryption works. But it doesn't matter
>> if the key is recorded or not. If the output is not sufficiently random,
>> there may be ways to decrypt it even without knowing the key.
>>
>> To explain why I criticize your statement, let's think of an example:
>> If I would write an encryption program where I use the wellknown Caesar
>> cipher (*), the output may be unreadable for me and any other normal
>> person. Therefore I could state that "the developer can't decrypt the
>> output without the key", but that doesn't mean that there aren't smarter
>> people than me who easily decipher the output using some statistics and
>> knowledge of character distribution in normal languages.
>>
>> As we don't know about the data the OP wants to "destroy", we don't know
>> if the use of a simple encryption like my example might be good enough
>> or if something better is needed. Therefore the statement that "I can't
>> decrypt the output" does not necessarily mean that my program is useful,
>> i.e. the statement is meaningless. And by pointing out that the
>> statement is meaningless I merely wanted to give the OP a hint that this
>> should not be a base for the decision to use the program.
>>
>>
>> Nils
>>
>> (*) The Caesar cipher simply shifts the characters of the alphabet a
>> fixed amount of places, which makes the new alphabet e.g.
>> "cdefghijklmnopqrstuvwxyzab" instead of the normal sequence starting
>> with "a".
>>
>>
>> --
>> ubuntu-users mailing list
>> [hidden email]
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Nils Kassube-2
Nandakumar wrote:

> Gopanam works in a different way. An 'a' will not be and 'e' always,
> so the knowledge of incidents of alphabets in a language won't be
> sufficient to decrypt the data.
>
> For example
>
> Hello, World!
> changes to
> ©Øßãޞ„ÇÐåßې|
>
> with the key 'password'
>
> Note that the consecutive 'l's are not encrypted to same.

Right, that's what I would expect from a real encryption program. My
expample of the Caesar cipher was used because that is something one can
understand even without a computer. And of course this simple program
would only work with text, not with data.

> > OK, I understand. But I think even a simple cipher technique will be
> > enough for BINARY files.

That depends - if the original data are e.g. construction details of a
brand new machine which should be used for a patent application, someone
finding the data might have incentive enough to pay a cryptographer to
decrypt the encrypted file.

> > (As a fun, I'll change the statement 'even the developer can't' to
> > 'the developer can't' since I'm not so smarter to decrypt ;) But
> > I'll
> > try to become smarter!)

:)


Nils


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: ubuntu: destroy a huge binary file and make it non-readable.

Liam Proven
In reply to this post by ping
On 25 January 2014 21:40, ping song <[hidden email]> wrote:
> thanks.
> but guess I haven't make it clear.


You still have not made it remotely clear, *and* you are also top quoting.

Please try to be clearer and in future bottom-quote.
--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
123