PGP Encryption in SSIS

  • I have a package which generates a Flatfile(CSV). Then i need to upload it to the FTP server with the PGP Encryption.the end users will download the files from the FTP location

    Can anyone help me on this?

  • I don't think there's built-in capacity for that, so you'll probably have to resort to a script task for that.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • I looked at some articles to use the script and i was thinking of any open sources to do that..

  • You'll likely have to resort to an open source command line like utility such as GnuPG or buy a component like CozyRoc's SSIS component. Although after reviewing their pricing I'm feeling more than a little unhappy. I looked around and found this: http://ssisextensions.codeplex.com/[/url]

    Which looks kind of promising. I have not used this library though.

    CEWII

  • I can vouch for GnuPG being solid. It's free unless you require the patented Idea algorithm in which case you'll need to buy a license for that.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • I am using SQL Server 2005

  • http://ssisextensions.codeplex.com/ is 2008 only.

    Cozy Roc has a 2005 component but I just looked at it and it appears as if it support OpenPGP only, i.e. it does not support Idea. Do you need to support Idea?

    GnuPG is a command-line tool so will work with any app that can call things from a command line. It will support Idea but as I said you'll need to buy a license, and it was a huge PITA to incorporate support for it. I had to recompile the binary gpg.exe on a Windows platform with the Idea C-library because they do not provide it in the redist msi.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • Cozy Roc has a 2005 component but I just looked at it and it appears as if it support OpenPGP only, i.e. it does not support Idea. Do you need to support Idea?

    What do you mean by idea...

  • From http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm:

    IDEA was used in Pretty Good Privacy (PGP) v2.0, and was incorporated after the original cipher used in v1.0, BassOmatic, was found to be insecure.[2] IDEA is an optional algorithm in the OpenPGP standard.

    Idea is a patented algorithm. Some PGP software support the IDEA algorithm in their products. One of the partners I dealt with at the time used a package from PGP Corporation to encrypt their files and they chose Idea so I was forced to support it.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • opc.three (6/25/2011)


    http://ssisextensions.codeplex.com/ is 2008 only.

    Cozy Roc has a 2005 component but I just looked at it and it appears as if it support OpenPGP only, i.e. it does not support Idea. Do you need to support Idea?

    GnuPG is a command-line tool so will work with any app that can call things from a command line. It will support Idea but as I said you'll need to buy a license, and it was a huge PITA to incorporate support for it. I had to recompile the binary gpg.exe on a Windows platform with the Idea C-library because they do not provide it in the redist msi.

    While it would be a PITA I would think you could down-grade it by hand. I have done some development with custom task in SSIS and control-flow tasks are easier to do that with. It could be a simple copy-paste job. Data-flow, not so much.. While I like what CozyRoc is doing I'm thinking his pricing model is a problem, but thats me. Most of the vendors I have dealt with have a "suite" option that is usually pretty pricey but you get everything, and each or groupings of each for a more reasonable price. Although if you need more than 2-3 of the singles the suite looks good. But thats just me.

    CEWII

  • Elliott Whitlow (6/27/2011)


    opc.three (6/25/2011)


    http://ssisextensions.codeplex.com/ is 2008 only.

    Cozy Roc has a 2005 component but I just looked at it and it appears as if it support OpenPGP only, i.e. it does not support Idea. Do you need to support Idea?

    GnuPG is a command-line tool so will work with any app that can call things from a command line. It will support Idea but as I said you'll need to buy a license, and it was a huge PITA to incorporate support for it. I had to recompile the binary gpg.exe on a Windows platform with the Idea C-library because they do not provide it in the redist msi.

    While it would be a PITA I would think you could down-grade it by hand. I have done some development with custom task in SSIS and control-flow tasks are easier to do that with. It could be a simple copy-paste job. Data-flow, not so much.. While I like what CozyRoc is doing I'm thinking his pricing model is a problem, but thats me. Most of the vendors I have dealt with have a "suite" option that is usually pretty pricey but you get everything, and each or groupings of each for a more reasonable price. Although if you need more than 2-3 of the singles the suite looks good. But thats just me.

    CEWII

    Not leaving SSIS for PGP tasks would be preferable. And I agree, downgrading would probably be an easy thing to do. Just for completeness, I did a quick search for Bouncy Castle, but could not see if they natively support Idea, or if support can be added. Do you know?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • I'm using GnuPG for encrypting files from SSIS 2005 before uploading them to an FTP site. I use a scripting object to call the command-line options I need.

    Works great.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • opc.three (6/27/2011)


    Not leaving SSIS for PGP tasks would be preferable. And I agree, downgrading would probably be an easy thing to do. Just for completeness, I did a quick search for Bouncy Castle, but could not see if they natively support Idea, or if support can be added. Do you know?

    I just looked back through the posts, and the OP only asked about IDEA after you posted on it, and in that case he was asking what it was. I am therefore going to assume that IDEA support is not important to him if he doesn't know what it is.. I absolutely agree that popping out to a command line by its very nature sacrifices a lot of control that I would rather not lose.. But it does work and can be done.

    The bouncy castle library looks fairly good, I was gonna take a look at that for some other things I wanted to do. The project builds for .NET FW 2 and I'm 99% sure the project is actually a VS2005 project. So I think there should be no problems with using it with SSIS 2005.

    CEWII

  • Elliott Whitlow (6/27/2011)


    opc.three (6/27/2011)


    Not leaving SSIS for PGP tasks would be preferable. And I agree, downgrading would probably be an easy thing to do. Just for completeness, I did a quick search for Bouncy Castle, but could not see if they natively support Idea, or if support can be added. Do you know?

    I just looked back through the posts, and the OP only asked about IDEA after you posted on it, and in that case he was asking what it was. I am therefore going to assume that IDEA support is not important to him if he doesn't know what it is.. I absolutely agree that popping out to a command line by its very nature sacrifices a lot of control that I would rather not lose.. But it does work and can be done.

    Agreed. It was not specifically for the benefit OP, but for me 😀 I would not implement the component as an Enterprise solution unless it could do Idea. If it could not, then I would stick with my current solution, gpg.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • And the survey says:

    http://www.bouncycastle.org/csharp/[/url]

    bccrypto-net-1.7-bin-ext.zip Compiled assembly only - includes the IDEA encryption algorithm.

    bccrypto-net-1.7-src-ext.zip Source code, examples, tests, documentation - includes the IDEA encryption algorithm.

    So, yes, it does.

    CEWII

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic. Login to reply