Different secret keys with 192 and 256 length

Hello everybody
I have this problem.
I want to generate secret key from my password. I used this code:
String algorithm = "PBEWITHSHA1AND192BITAES-CBC-BC";
    int iterations = 3456;
    byte [] salt = Hex.decode("20CB84A0CE6F4C5B");
    String pass = "321TestovacieHeslo";
    byte [] passBytes = pass.getBytes("UTF-16BE");
    //1.way
    PKCS12ParametersGenerator gen = new PKCS12ParametersGenerator(new SHA1Digest());
    byte [] testBytes = PKCS5S2ParametersGenerator.PKCS12PasswordToBytes(pass.toCharArray());
    gen.init(testBytes,salt,iterations);
    //gen2.init(testBytes,salt,iterations);
    KeyParameter parameter =
        (KeyParameter)gen.generateDerivedParameters(192);
    //2.way
    SecretKeyFactory keyFact = SecretKeyFactory.getInstance(algorithm);
    SecretKey key = keyFact.generateSecret(
            new PBEKeySpec(pass.toCharArray(), salt, iterations, 192));
    //print
    byte [] output = key.getEncoded();
    byte [] output2 = parameter.getKey(); Both ways give me same results, but now I wanted to achieve same password as from Crypto++.
This code give same result with 128 bit keys but not with 192 ot 256 bit. (I tried 8/16/24 byte salts)
Where is problem ? Padding ? Because when I used all same parameter with 128 and 192 bit I got these results:
128bit:7b4b7b59b230003f452fa4fe7c0eb9c1
192bit:7b4b7b59b230003f452fa4fe7c0eb9c19231f5a471741535
My concret case:
input: password: "321TestovacieHeslo"
salt:"20CB84A0CE6F4C5B"
iter:3456
And I need this 24 byte larger key from Crypto++:
C6408B48D17A1A38F51AC7F05DE24CBB967049DF9FDDCB8F
but I got this:
1eb4b95846cdfb60eae519c8efa2569011e30e964be7cfbd
Can anybody help me ?
Thanks

Have you tried using "ntp update-calendar"?

Similar Messages

  • Radium 49 keys with leopard and MBP??

    Having trouble using my Radium 49 USB keys with my MBP (newest version) on Leopard 10.5.6
    Anyone else got these working?
    I have downlaoded the latest M-audio leopard driver but still no joy however, the USB powers the Radium as it all lights up..
    However I also have a new Mac Pro running Leopard and the Radium just plugged striaght into this and worked?! no problem!!
    What am I doing wrong? and anyone else got their Leopard MBP working with a Radium 49?

    I'm thinking the MBP USB port doesn't have enough power to fully activate the keyboard.
    How many USB ports does the MBP have, on the new ones there's a low power and a high power port, you might try the other USB port.
    Other than that, did the Radium-49 come with a power adapter? Try it with that if it works you will know it's the USB port.
    pancenter-

  • Making a straight line aligned with text and adjusting length

    i am trying to make a simple straight line above some text in after effects cs5 that lines up with the beginning and end of the text. Not touching or anything. Nothing special. then a line perpendicular to it of a different stroke size.
    Also i want it to draw or fill in.
    first of all, if i dont get the line length perfect the first time, and i try to adjust the length, then the stroke width changes, also the scale.
    this is maddening because if i am making other pieces that i will animate together, i want them to be the same. and every time i try to adjust the line length, it changes everything...
    or do i just make all lines and type graphics in illustrator or photoshop and import them...and make a mask.  I almost think that all those extra steps might be easier...(sarcasm)
    any tips on this as this super basic task is turning into a headache?
    thx in advance.

    Well, because if you dont get it exactly correct and you want to make it longer or shorter, not only does that change, but the stroke starts scaling. So now you have simply a shorter line, you have a line that appears the same but is inevitably different point sizes and different scales that are maddening to match. I am animating several iterations of a kind of type/line template in 3d space. So i have made each on its own composition that is not 3d.
    i thought you would be able to just click on the end of the line/path and make the line itself shorter or longer like in illustrator. Also when the scale changes, it changes its position slightly from its anchor point....

  • Can I print to different paper sizes with AirPrint and Safari?

    I am the organizer of a trade show coming up.
    We are using a web based registration system for attendees.
    To print the attendee badges, we simply log in to the site through the net, and print them.  I have an HP CP1525nw loaded with 3x5 index cards that will slide into the badge holders.
    When printing from the Mac, I simply go to Page Setup, set the paper size and orientation and print.   It works great.
    However, we would love to use iPads for our registration staff.  Not only are they less expensive, but they are portable, and totally wireless.   We can access the site just fine, and the badges show great on the screen.   The website generates the badges as a .pdf file and they load into the browser.
    When printing from the iPad, the badges print HUGE, filling an entire 8.5x11 size page.   With the 3x5 card stock loaded in the paper tray, they still print huge, only showing the portion of the badge on the 3x5 card in the location it would be had there been letter size paper in the tray.
    Any ideas?
    I've considered formatting another badge for letter size, and having it print only where the 3x5 card would fall... but that is a huge tweak that I think should be unnecessary.
    How do I print to different size paper from my iPad?
    Thanks for the help in advance.
    --Brian

    Thanks for the info.
    It will let me send the PDF to eprint....  and there are paper size choices.
    However, they only offer Letter, Legal and A4.
    My printer DOES support 3x5 index cards.  But, the option is not listed.
    Any other ideas?

  • Remaping some keys with loadkeys and xmodmap

    Me again.
    I have a EEEPC 1005HA and I really don't like to press the Fn key to reach the HOME and END keys and the extreme position of DELETE. I also don't like SHIFT+7 for such a common symbol as "/". For all these reasons, I devised this scheme for the virtual consoles:
    loadkeys -q /usr/local/share/kdb/keymaps/personal.map
    in my /etc/rc.local script, with
    keycode 97 = Remove
    keycode 119 = Find
    keycode 99 = Select
    keycode 127 = F70
    string F70 = "/"
    inside personal.map.
    All this made this replacements:
    Pause --> HOME
    PrintScreen --> END
    Right Ctrl --> DELETE
    MENU --> "/"
    All this works fine... but I get strange results when I use xmodmap for doing the same inside Xorg. This is my ".Xmodmap" file:
    keycode 127 = Find
    keycode 107 = Remove
    keycode 105 = Select
    Strange results:
    1) HOME (ex-Pause) and END (ex-PrintScren) work fine inside urxvt, but they do not work in firefox nor geany.
    2) DELETE (ex-right control) works in all of them but with no key repetition (I have to release the key in order to use it again).
    3) (Not strange) I don't know how to make the replacement for the menu key
    Any idea?
    Thanks in advance.
    EDIT: Improved the title.
    Last edited by falbani (2010-02-03 02:44:13)

    falbani wrote:3) (Not strange) I don't know how to make the replacement for the menu key
    Open a console, launch xev, set focus to the newly created window, press the menu key and finally inspect the console for the keycode.
    And here is how what you should be looking for looks like:
    KeyPress event, serial 27, synthetic NO, window 0x1600001,
    root 0x122, subw 0x0, time 5908324, (168,173), root:(169,194),
    state 0x0, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    KeyRelease event, serial 27, synthetic NO, window 0x1600001,
    root 0x122, subw 0x0, time 5911343, (168,173), root:(169,194),
    state 0x40, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

  • Remapping Apple Remote keys with AppleScript and SofaControl

    Hello,
    I am attempting to write a bit of code in AppleScript to map the buttons on my Apple Remote to certain keys on my keyboard.
    This is all I want:
    (Remote = Keyboard)
    left = Fn+F7
    right = Fn+F9
    play/pause= Fn+F8
    (You might notice these are the media keys)
    I am using an application from the app store call SofaControl for this, I know no other way (ControllerMate won't give me general access to the Apple Remote).
    The problem with SofaControl is that it seems to be application specific, which is annoying: I don't want to be switching applications to play or pause a song on Spotify.
    Advanced information
    SofaControl gives you a few (what look to be) functions for assigning keys to buttons, here is an example of a preinstalled Spotify script:
    on rcActivate()
              -- this code is executed when the script is activated
              -- typically the target application gets activated
              ignoring application responses
                        tell the application "Spotify" to activate
              end ignoring
    end rcActivate
    on rcPlay()
              -- send Space to Spotify
              simulate keycode 49
    end rcPlay
    on rcLeft()
              -- send Command-Left Arrow to Spotify
              simulate keycode 123 with command
    end rcLeft
    on rcRight()
              -- send Command-Right Arrow to Spotify
              simulate keycode 124 with command
    end rcRight
    on rcPlus()
              -- send Command-Up Arrow to Spotify
              simulate keycode 126 with command
    end rcPlus
    If anyone can help, I'll reiterate my simple requirments:
    I do NOT want this to be application-specific, I have disabled all other pre-installed scripts that came with SofaControl, so this should be the only one with access to the remote. (I want to control the media key from any space/desktop I'm on.)
    I just want the three afforementioned keys mapped, nothing else. I'm hoping this is as simple as:
         (*for the play button*)
         on rcPlay()
                simulate keystroke "Fn"+"F8"
         end rcPlay
              … or something like that (don't laugh, I don't know AppleScript!!)
    Hopefully it isn't that complicated and someone can help. I'm only asking because I really don't want to learn AppleScript just for the sake of doing this.

    You'll need a program such as ired lite or mira or remote buddy to do that, but yes, it's possible.
    http://www.filewell.com/iRedLite/
    http://twistedmelon.com/mira/
    http://www.iospirit.com/remotebuddy/

  • Using a database on a key with Flash and Acrobat

    Hi All,
    I'm creating an application which is to be distributed on a USB key made from both Acrobat and Flash.  Can someone give me any pointers on what database I can use to save work as the user goes along?
    Thanks
    Kieran

    Hi sar23,
    You may have inadvertently created or edited the document in the new Numbers 3.0 (which is free; you don't have to buy it) and are now trying to open it with the old Numbers 2.3.
    Both versions can be on your Mac at the same time, and can run at the same time.  The icons are similar so it's easy to confuse them (old on top here, new on bottom).
    The new Numbers 3.0 is in your Applications folder. The old Numbers 2.3 should be in a subfolder in the Applications folder named iWork '09 or similar.
    If you accidently edited an old document in the new version and want to take to take it back to the old version, you can export it:
    SG

  • Secret key getting corrupted

    Hi All,
    Can anyone please help me in finding the possibilities of a secret key getting corrupted??
    Encryption Algorithm used :- Blowfish
    Instance of SecretKeyFactory :- PBEWithMD5AndDES
    Also, are there any chances wherein, the secret key generated varies ( probably in length ); even though same data is used for key construction??
    Thanks in advance!!!!

    Hi Sabre,
    Below is the CryptoWrapper class:
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    * A class to simplify doing encryption & decryption.
    * <P>
    * Note that it acts immediately; you <B>CANNOT</B> use this as a stream cipher wrapper.
    public class CryptoWrapper{
        private static KeyGenerator keygen;
        private static Cipher cipher;
        private String transform;
         * Creates a crypto wrapper with sensible defaults; does <B>NOT</B> add a provider.
         * Default transformation is "Blowfish".
         * @return a wrapper for the required cipher.
        public CryptoWrapper() throws NoSuchAlgorithmException, NoSuchPaddingException{
            this("Blowfish", null);
         * Creates a crypto wrapper with sensible defaults; does <B>NOT</B> add a provider.
         * @param transformation the name of the transformation (e.g. <I>"Blowfish"</I>).
         * @return a wrapper for the required cipher.
        public CryptoWrapper(String transformation) throws NoSuchAlgorithmException,
                                                           NoSuchPaddingException{
            this(transformation, null);
         * Creates a CryptoWrapper with the given transformation name and crypto provider.
         * @param transformation the name of the transformation (e.g. <I>"Blowfish"</I>).
         * @param provider a crypto provider (e.g. <I>com.sun.crypto.provider.SunJCE</I>).  If null, no provider added.
         * @return a wrapper for the required cipher.
        public CryptoWrapper(String transformation, Provider provider) throws NoSuchAlgorithmException,
                                                                              NoSuchPaddingException{
            if (null != provider){
                Security.addProvider(provider);
            // can't happen until after the provider's loaded
            this.cipher = Cipher.getInstance(transformation);
            this.transform = transformation;
            if (null == this.keygen){
                this.keygen = KeyGenerator.getInstance(transformation);
         * Example to encrypt and decrypt a string.
         * <P>
         * Usage: <B>java CryptoWrapper <text to be encrypted></B>
        public static void main(String[] args){
            try{
                CryptoWrapper bw = new CryptoWrapper("Blowfish",
                                                     new com.sun.crypto.provider.SunJCE());
                SecretKey key = CryptoWrapper.generateSecretKey(128);
                String plaintext = "";
                String ciphertext;
                String outputtext;
                byte[] plaintext_bytes;
                byte[] ciphertext_bytes;
                byte[] outputtext_bytes;
                for (int i = 0; i < args.length; i++){
                    plaintext = plaintext + " " + args;
    plaintext_bytes = plaintext.getBytes();
    ciphertext_bytes = bw.encrypt(plaintext_bytes, key);
    ciphertext = new String(ciphertext_bytes);
    outputtext_bytes = bw.decrypt(ciphertext_bytes, key);
    outputtext = new String(outputtext_bytes);
    catch (BadPaddingException bp){
    catch (IllegalBlockSizeException ibs){
    catch (InvalidKeyException ie){
    catch (NoSuchAlgorithmException nsa){
    catch (NoSuchPaddingException nsp){
    * Creates a secret key of the given size.<BR>
    * Note: synchronized against the key generator object.
    * @param keysize The size (<B>in bits</B>) of the key.
    * @return The secret key.
    public static synchronized SecretKey generateSecretKey(int keysize)
    throws InvalidParameterException{
    keygen.init(keysize);
    return keygen.generateKey();
    * Decrypts the given byte array using the given cipher, with the given key.<BR>
    * Note: synchronized against the cipher object.
    * @param ciphertext An array of bytes to decode.
    * @param key A secret key for use in decryption.
    * @return The decrypted byte array.
    public byte[] decrypt(byte[] ciphertext, SecretKey key) throws BadPaddingException,
    IllegalBlockSizeException,
    InvalidKeyException,
    NoSuchAlgorithmException,
    NoSuchPaddingException{
    SecretKeySpec sks = new SecretKeySpec(key.getEncoded(),
    this.transform);
    synchronized (this.cipher){ // this resets the state of the cipher, so we must prevent concurrent access
    this.cipher.init(Cipher.DECRYPT_MODE, sks);
    return this.cipher.doFinal(ciphertext);
    * Encrypts the given byte array using the given cipher, with the given key.<BR>
    * Note: synchronized against the cipher object.
    * @param plaintext An array of bytes to encode.
    * @param key A secret key for use in encryption.
    * @return The encrypted byte array.
    public byte[] encrypt(byte[] plaintext, SecretKey key) throws NoSuchAlgorithmException,
    NoSuchPaddingException,
    BadPaddingException,
    InvalidKeyException,
    IllegalBlockSizeException{
    SecretKeySpec sks = new SecretKeySpec(key.getEncoded(),
    this.transform);
    synchronized (this.cipher){ // this resets the state of the cipher, so must prevent concurrent access
    this.cipher.init(Cipher.ENCRYPT_MODE, sks);
    return this.cipher.doFinal(plaintext);
    }Below is the hexStringToByteArrayConverter:public byte [] hexStringToByteArray(String hexStr) throws BadPasswordException{
         int length = hexStr.length();
         if(length%2!=0)
              throw new BadPasswordException("Bad hex string password!");
         int [] x = new int[length];
         int btLen = length/2;
         byte[] bt = new byte[btLen];
         for(int i=0;i<length;i++)
         x[i] = Character.getNumericValue(hexStr.charAt(i));
         if(i%2==1)
              int y = x[i-1]*16 + x[i];
              bt[(i-1)/2] = (byte)y;
         return bt;

  • How to  use Shared secret key(diffie hellman) for encryption n decryption

    In my client server program i wanted to encrypt a random key using shared secret key for encryption and decryption with DES. but i'm unable to encrypt it as init() is not takin the shared secret key for encryption. somebody please help. my mail id - [email protected]

    You need to post some code because it works for everyone else.

  • Problem with JECS and S&H cess condition type

    Dear Experts,
    According to client requirement, I have done pro-forma delivery *** excise invoice. Then I have done J1IIN- Excise invoice.(Account doc created). After that I have done F2 commercial billing with reference to delivery. Here if I include only 'basic excise
    duty' condition type, getting no problem in FI posting. But if I include Ecess (JECS) and S&H cess (JA1X)  condition type, then I can't post the commercial invoice into FI . An information message is coming, "no accounting doc generated". and the status in the billing document is "error in accounting interface". I have done all settings of account determination of CIN. Still getting this error. Please help me to overcome the problem.
    Thanks in advance

    Dear Prashanth,
    I have maintained 1. Account key EXD for JEXP, JECS and JA1X condition types. 2. Maintain account determination in CIN. 3. I have also maintained Tax code (A4, AC etc for VAT and CST) and maintained  the condition record with tax code in vk11 also.
    Should I maintain VKOA with EXD account key with KOFI and KOFK? I maintained previously EXD in VKOA also but still Im stuck in that problem. so I deleted from VKOA. I tried to post through VF02. at that time it is showing a message "Error in account determination : table T030K  key BPIN EXD. Message no. FF709". but for JEXP I can post to FI without any error. I tried to search in that forum about the error. but didnt get any solution.please advice me.
    Edited by: neel06 on Apr 30, 2011 9:41 AM

  • Need to new dep. key with zero %

    Hi,
    I need to create a new dep. key with 0% and i want to assign this dep. key to my asset.
    Guide me
    Srinivas

    Hello,
    Thanks for your quick reply
    The thing is that we assigned wrong dep key to one asset. now we need to replace new dep. key
    for that with 0%.
    After assigment of new dep. to asset, i will recaclculate the depreciation for this year only.
    My problem will got resolved.
    I dont find any zero % dep.key in afama.
    How to do , guide me
    srinivas

  • How to save secret key in the NSS certDB and then retrieve it through Java?

    Hi,
    I 'm pretty new trying to handle keying material for NSS fips mode.
    After following the guidelines from http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#NSS I need my code to use SecretKeyFactory method generateSecret with DESedeKeySpec parameter in the following way:
    Provider nss = new sun.security.pkcs11.SunPKCS11(configFileName);
    Security.addProvider(nss);
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DESede", nss);
    DESedeKeySpec keySpec = new DESedeKeySpec(new String("abcdefghijklmnopqrstuvw").getBytes("UTF-8"));
    SecretKey key = keyFactory.generateSecret(keySpec);
    The question is: what are the steps needed to save secret key "abcdefghijklmnopqrstuvw" in NSS certDB in the fips mode (nssModule = fips in pkcs#11 conf. file) and how should it be retrieved in the Java code?
    Any help will be appreciated...

    OK...I didn't test this in FIPS mode, but it works in keystore mode (which says persistent storage of keys)
    KeyGenerator kg = KeyGenerator.getInstance("DESede",nss);
    kg.init(192);  //yields 168-bit key
    SecretKey tripleDesKey = kg.generateKey();
    KeyStore.SecretKeyEntry skEntry = new KeyStore.SecretKeyEntry(tripleDesKey);
    ks.setEntry(randAlias, skEntry, new KeyStore.PasswordProtection(password));I was generating some random bytes and base64'ing them to get a random alias on each execution of the program. I'd also loop through and print out the aliases before I generated another key to ensure it was storing the key in between runs which it was.
    Command-line proof the keys are in db:
    symkeyutil -L -d .
    Enter Password or Pin for "NSS Certificate DB":
         Name            Len Strength     Type    Data
    NSS Certificate DB:
    7i/XoKcaLhU=          24    168         des3  <restricted>
    Yzjt7W+AIgc=          24    168         des3  <restricted>
    RkOTZssCEQM=          24    168         des3  <restricted>
    S2BHRcFUyAA=          24    168         des3  <restricted>
    secretKeyAlias        24    168         des3  <restricted>
    R/DaVy1z1MM=          24    168         des3  <restricted>
    IdpdnIDzOYs=          24    168         des3  <restricted>
    SeVASW8PrOc=          24    168         des3  <restricted>
    c6Ml/9I7thQ=          24    168         des3  <restricted>Edited by: dstutz on May 15, 2008 12:28 PM
    Edit again:
    I changed the mode in the cfg file to fips and used modutil to change module to fips mode and it still works...all the keys I created in keystore mode are still there and I can add new ones.
    C:\nss>symkeyutil -L -d .
    Enter Password or Pin for "NSS FIPS 140-2 Certificate DB":
         Name            Len Strength     Type    Data
    NSS FIPS 140-2 Certificate DB:
    LmsZDBaaCw8=          24    168         des3  <restricted>
    EQaX3wdJ1cY=          24    168         des3  <restricted>
    7i/XoKcaLhU=          24    168         des3  <restricted>
    Yzjt7W+AIgc=          24    168         des3  <restricted>
    RkOTZssCEQM=          24    168         des3  <restricted>
    S2BHRcFUyAA=          24    168         des3  <restricted>
    secretKeyAlias        24    168         des3  <restricted>
    UsY23mwSzEM=          24    168         des3  <restricted>
    B/auMw2OTvE=          24    168         des3  <restricted>
    coqyCAAJpsk=          24    168         des3  <restricted>
    vVBHLg1r3cY=          24    168         des3  <restricted>
    R/DaVy1z1MM=          24    168         des3  <restricted>
    IdpdnIDzOYs=          24    168         des3  <restricted>
    SeVASW8PrOc=          24    168         des3  <restricted>
    c6Ml/9I7thQ=          24    168         des3  <restricted>Edited by: dstutz on May 15, 2008 12:56 PM

  • Difference between Primary Key and Unique Key with NOT NULL constraint

    As both can be referred to another table.
    Apart from the difference that Primary Key can be only 1 and Unique keys can be multiple,
    is there any difference?
    Like in terms of type of Index?

    PARAG_C wrote:
    As both can be referred to another table.
    Apart from the difference that Primary Key can be only 1 and Unique keys can be multiple,
    is there any difference?
    Like in terms of type of Index?Technically there is almost no difference. Logically the two are often used for slightly different concepts.
    The PK (and with it the index) is often an ID column filled by a seqeunce. This key can then be refenced by foreign key constraints on other tables. it is very useful to have this as a meaningless technical construct. Because then the chance that such a ID needs to be changed is extremly slim.
    The UK (and with it the index) is often one or several columns that represent the logical key for the entity. Foreign key constriants should not point to this. THe chance that this attribute will be changed at some point in time is way higher then for a meaningless number (ID).

  • 2 same surrogate keys with different filter conditions in one report

    how do we put 2 same sr keys with different filter conditions in one single report??
    for example, we have to get the 'count' for tm_sr_key:
    1. count(tm_sr_key) where past_due_flag = Y
    2. count(tm_sr_key) where past_due_flag = Y and N
    to be displayed in one single report.
    it happens that both sr_keys will display the same measure (which is the 1st filter conditions)
    and the filter under criteria tab in anwer will show as :
    tm_sr_key where {filter condition 1}
    AND
    tm_sr_key where {filter condition 2}
    instead of :
    tm_sr_key where {filter condition 1} for 1st measure
    tm_sr_key where {filter condition 2} for 2nd measure
    d only option i could think right now is to duplicate the tm_sr_key data in the same table but with different name say, tm_sr_key_2..
    kindly pls help.
    thanx

    i'm sorry, not really understand.
    could you pls explain a bit more about the filter column? how do we do it? coz i'm really new in this tool.
    r u talking about editing the filter located under the column on the right side of the OBIEE answers?
    or is it by editing the 'edit column formula' for required column; that is by replacing the 'column formula' expression with this:
    FILTER(EXPS_FACT.FAC_SR_KEY USING EXPS_FACT.PAST_DUE_FLAG = 'Y') <----if it is like this, i tried it already & its giving me an error message..
    thanx.
    Edited by: rezza.nasha on May 28, 2009 1:26 AM

  • I get different result when I paste with mouse and shift+ins

    Sometimes I get different result when I paste the clipboard content with mouse and shift+insert key combination. Why? What can I do to stop this annoyance?

    Just to add a little to the above, there really is no universally applied standard (not even close) for how the primary, secondary, and clipboard buffers should be used.  Any X program can use them however they wish.  But there are some common patterns: selected text should be placed in the primary buffer, and X pastes from the primary buffer with either middle click or shift-ins by default.
    This default can (and unfortunately often is) overriden by clipboard managers - I don't know why they don't stay true to their name and just manage the clipboard buffer, but they often don't.
    <mini rant>with no clipboard tools installed, selected text in any program I have is in the primary selection, and shift+ins or middle click paste from this primary selection.  Ctrl-C/Ctrl-V post to/from the clipboard buffer.  No need for extra tools.  If I install any clipboard manager, this default sanity of X11 goes strait to s(&*Y.  I don't like clipboard managers </mini rant>  <mini praise> X11 is great without any of that cruft added </mini praise>
    Last edited by Trilby (2013-06-15 03:12:39)

Maybe you are looking for